package com.yunhe.java.pro14;

/**
 * Created by Administrator on 2017/8/10 0010.
 */
public class Student {
    private String name;
    private int id;

    public Student() {}
    public Student(String name, int id) {
        this.name = name;
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
//1.定义TreeMap集合，集合中放入Student对象，key值为 Studen的Id(int类型)，并根据ID值倒序
